package com.dataseek.iot.core.constant;

import io.swagger.models.auth.In;

/**
 * @author cc
 * @Title: 返回常量
 * @Description: 返回常量
 * @date 2021/9/712:10 下午
 * @since 1.0
 */
public class ResponseConst {

    public static final String SUCCESS = "请求成功";
    public static final Integer SUCCESS_CODE = 200;
    public static final String CREATED  = "资源被创建";
    public static final Integer CREATED_CODE  = 201;
    public static final String RESOURCE_TRANSMIT  = "资源被转移";
    public static final Integer RESOURCE_TRANSMIT_CODE  = 301;
    public static final String BAD_REQUEST  = "请求异常";
    public static final Integer BAD_REQUEST_CODE  = 400;
    public static final String BAD_RESOURCE  = "请求资源出错";
    public static final Integer BAD_RESOURCE_CODE  = 401;
    public static final String NO_AUTH  = "您无权访问";
    public static final Integer NO_AUTH_CODE  = 403;
    public static final String NO_RESOURCE  = "请求失败";
    public static final Integer NO_RESOURCE_CODE  = 404;
    public static final String ERROR_METHOD  = "请求方法错误";
    public static final Integer ERROR_METHOD_CODE  = 405;
    public static final String SERVER_ERROR  = "服务器故障";
    public static final Integer SERVER_ERROR_CODE = 500;
    public static final String CRUD_FAILED = "操作失败";
    public static final Integer CRUD_FAILED_CODE = 40001;
    public static final String CRUD_SUCCESS = "数据库操作成功";
    public static final Integer CRUD_SUCCESS_CODE = 40002;
    public static final String QUERY_SUCCESS = "查询到数据";
    public static final String NULL_PARAM = "请求参数为空";
    public static final Integer NULL_PARAM_CODE = 40003;
    public static final String LOGIN_SUCCESS = "登陆成功";
    public static final String LOGIN_FAILED = "登陆失败，请核对用户名与密码是否正确";
    public static final Integer LOGIN_FAILED_CODE = 40004;
    public static final String NO_USERNAME = "无此用户";
    public static final Integer NO_USERNAME_CODE = 40005;
    public static final String ERROR_PASSWORD = "密码错误";
    public static final Integer ERROR_PASSWORD_CODE = 40006;
    public static final String UNUSED = "未被启用";
    public static final Integer UNUSED_CODE = 40007;
    public static final String TOKEN_EXPIRED = "token 无法解析或者已经过期";
    public static final Integer TOKEN_EXPIRED_CODE = 40008;
    public static final Integer OUT_OF_INDEX_CODE = 40009;
    public static final String OUT_OF_INDEX = "请求的参数超出范围";
    public static final Integer DUPLICATION_CODE = 40010;
    public static final String DUPLICATION = "数据库中已经有相同值，不满足唯一性要求";
    public static final Integer SEND_FAILED_CODE = 40011;
    public static final String SEND_FAILED = "发送失败";



}
